package com.pearl.generator.pojo.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author TangDan
 * @version 1.0
 * @since 2022/8/8
 */
@Data
public class PackageConfigRequest {

    @ApiModelProperty("ID")
    private Long id;

    @ApiModelProperty("名称")
    @NotBlank(message = "名称不能为空")
    private String name;

    @ApiModelProperty("父包名，默认值:com.baomidou")
    private String parent;

    @ApiModelProperty("父包模块名，默认值:无")
    private String moduleName;

    @ApiModelProperty("Entity 包名，默认值:entity")
    private String entity;

    @ApiModelProperty("Service 包名，默认值:service")
    private String service;

    @ApiModelProperty("Service Impl 包名，默认值:service.impl")
    private String serviceImpl;

    @ApiModelProperty("Mapper 包名，默认值:mapper")
    private String mapper;

    @ApiModelProperty("Mapper XML 包名，默认值:mapper.xml")
    private String xml;

    @ApiModelProperty("Controller 包名，默认值:controller")
    private String controller;

    @ApiModelProperty("自定义文件包名，输出自定义文件时所用到的包名")
    private String other;

    @ApiModelProperty("路径配置信息，Collections.singletonMap(OutputFile.mapperXml, \"D://\")")
    private String pathInfo;
}
